<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<h3>
	<s:text name="page.heading" />
</h3>
<form class="form-horizontal">
	<div class="form-group">
		<s:actionmessage cssClass="alert alert-success" />
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="switch.name" /></label>
		<div class="controls">
			<s:textfield cssClass="input-xlarge" name="switches.name"
				placeholder="%{getText('switch.name')}" required="true" disabled="true" />
		</div>
	</div>
	<div class="control-group">
		<label class="control-label"><s:text name="switch.icon"/></label>
		<div class="controls">
			<select id="inputIcon" name="switches.icon" disabled="disabled">
				<option selected="selected">キッチン</option>
				<option>リビング</option>
				<option>ベッドルーム</option>
				<option>子供部屋１</option>
				<option>子供部屋２</option>
				<option>アイコン6</option>
				<option>アイコン7</option>
				<option>アイコン8</option>
				<option>アイコン9</option>
				<option>アイコン10</option>
				<option>アイコン11</option>
				<option>アイコン12</option>
			</select>
		</div>
	</div>
	<div class="form-actions">
		<s:url action="edit" namespace="/switches" var="switchEditUrl"
			includeParams="none">
			<s:param name="id" value="%{id}" />
		</s:url>
		<sj:a href="%{#switchEditUrl}" targets="targetDiv"
			cssClass="btn btn-primary">
			<s:text name="form.btn.edit" />
		</sj:a>
	</div>
</form>